//
//  NSObject+Calculate.m
//  FRP_OC
//
//  Created by DeLong Yang on 2017/8/7.
//  Copyright © 2017年 DeLongYang. All rights reserved.
//

#import "NSObject+Calculate.h"
#import "CalculatorMaker.h"

@implementation NSObject (Calculate)

// 计算
+ (int )makeCaculators:(void (^)(CalculatorMaker *make))calculatorMake
{
    CalculatorMaker *mgr = [[CalculatorMaker alloc]init];
    calculatorMake(mgr);
    return mgr.result;
}

@end
